var option={
	'width':500,
	'height':400,
	'time':4000
};
var interval;
var index = 0;  
var width = 0;
var height=0;
var Slide={
		run:function(time){
			interval = setInterval(this.chat, "4000");  		
		},
		chat:function(){
			
			$('.slide_container_new img').each(function(){
				if($(this).index()==index){
					$(this).fadeIn();
				}else{
					$(this).fadeOut();
				}
			});
			if(index==0){
	        	 // $('.slide_container_new > div.big').animate({marginLeft:((-2*width+(index*width))+"px")},0);
	          	  $('.slide_buttom > div.slide_up').animate({marginTop:(-((index*height/2))+"px")},0);
	          	  $('.slide_top > div.slide_up').animate({marginTop:(-((index*height/2))+"px")},0);
	          }else{
			    	//$('.slide_container_new > div.big').animate({marginLeft:((-2*width+(index*width))+"px")},50);
			    	$('.slide_buttom > div.slide_up').animate({marginTop:(-((index*height/2))+"px")},1000);
			    	$('.slide_top > div.slide_up').animate({marginTop:(-((index*height/2))+"px")},1000);
	          }
	    	index++;
	  		if(index==3){
	  			index=0;
	  		}
		},
	slide:function(option){
		width = option.width;
		height = option.height;
		$('.slide_container_new').css('width',width);
		$('.slide_container_new').css('height',height);

		$('.slide_container_new  > div.big').css('width',width);
		$('.slide_container_new  > div.big').css('height',height);

		$('div.slide_top').css('height',height/2);
		$('div.slide_top').css('width',width/2);

		$('div.slide_buttom').css('height',height/2);
		$('div.slide_buttom').css('width',width/2);

		
		$('div.slide_buttom > slide_up').css('width',3*width/2);
		
		$('.slide_buttom > div.slide_up').children('img').each(function(){
			$(this).css('width',width/2);
			$(this).css('height',height/2);
		});
		$('.slide_top > div.slide_up').children('img').each(function(){
			$(this).css('width',width/2);
			$(this).css('height',height/2);
		});
		
		$('.slide_container_new > div.big').children('img').each(function(){
			$(this).css('width',width);
			$(this).css('height',height);
		});
		this.chat();
		this.run();
	}
}